<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">基本信息</div>
    <table class="layui-table timo-detail-table">
        <colgroup>
            <col width="100px">
            <col>
            <col width="100px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th>开票主体</th>
            <td th:text="${invoices.name}"></td>
            <th>发票抬头</th>
            <td th:text="${invoices.invoiceTitle}"></td>
        </tr>
        <tr>
            <th>企业代码</th>
            <td th:text="${invoices.companyNum}"></td>
            <th>地址</th>
            <td th:text="${invoices.address}"></td>
        </tr>
        <tr>
            <th>电话</th>
            <td th:text="${invoices.phone}"></td>
            <th>邮箱</th>
            <td th:text="${invoices.email}"></td>
        </tr>
        <tr>
            <th>开户行</th>
            <td th:text="${invoices.depositBank}"></td>
            <th>银行账户</th>
            <td th:text="${invoices.bankAccount}"></td>
        </tr>
        <tr>
            <th>发票金额</th>
            <td th:text="${invoices.invoiceValue}"></td>
            <th>发票状态</th>
            <td th:text="${#dicts.keyValue('invoiceStatus',invoices.invoiceStatus)}"></td>
        </tr>
        <tr>
            <th>发票文件</th>
            <td colspan="3"><a th:if="${invoices.invoiceFile}" style="color: blue"
                               th:href="@{${imgUrl}+${invoices?.invoiceFile}}">[[${invoices?.invoiceTitle}]]</a></td>

        </tr>
        <tr>
            <th>创建者</th>
            <td th:text="${invoices.createBy?.nickname}"></td>
            <th>更新者</th>
            <td th:text="${invoices.updateBy?.nickname}"></td>
        </tr>
        <tr>
            <th>创建时间</th>
            <td th:text="${#dates.format(invoices.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
            <th>更新时间</th>
            <td th:text="${#dates.format(invoices.updateDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
        </tr>
        <tr>
            <th>备注</th>
            <td th:text="${invoices.remark}" colspan="3"></td>
        </tr>
        </tbody>
    </table>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>